<include file="application/admin/view/public/left.html"/>
<div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">管理中心<b>></b><strong>添加商品</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
            <h3>添加商品</h3>
    <form action="{:U('Goods/goods_add')}" method="post" enctype="multipart/form-data" id="myform" name="myform">
     <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
      <tr>
       <td width="80" align="right">商品名称</td>
       <td>
        <input type="text" name="name" id="name"  value="{$list.name}" size="50" class="inpMain" />
       </td>
      </tr>
      <tr>
        <td align="right">商品分类：</td>
        <td>
          <select name="goods_category" style="width:300px;" >
            <volist name="gc" id="vo">
              <option value="{$vo.id}" <eq name="list.goods_category" value="$vo.id">selected="selected"</eq>>{$vo.name}</option>
            </volist>
        </select>
        </td>
      </tr>
      <tr>
        <td align="right">商品价格：</td>
        <td>
           <input class="inpMain" id="all_money" name="all_money" size="50" value="{$list.all_money}" type="text">
       </td>
      </tr>
      <tr>
       <td align="right">会员价格：</td>
       <td>
        <input type="text" id="money" name="money" value="{$list.money}" size="50" class="inpMain" />
       </td>
      </tr>

      <tr>
       <td align="right">奖金币价格：</td>
       <td>
        <input type="text" id="account_type_1_money" name="account_type_1_money" value="{$list.account_type_1_money}" size="50" class="inpMain" />
       </td>
      </tr>
      <tr>
       <td align="right">重复币价格：</td>
       <td>
        <input type="text" id="account_type_2_money" name="account_type_2_money" value="{$list.account_type_2_money}" size="50" class="inpMain" />
       </td>
      </tr>



      <tr>
       <td align="right">商品规格：</td>
       <td>
        <input class="inpMain" id="guige" name="guige" size="50" value="{$list.guige}" type="text">
        </td>
      </tr>
      <tr>
        <td align="right">库存：</td>
        <td>
          <input class="inpMain" id="all_num" name="all_num"  size="50" value="{$list.all_num}" type="text"
        onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
        </td>
      </tr>
      <tr>
       <td align="right">图片上传：</td>
       <td>
            <input type="file" name="pic" id="pic" />  <img src="{$list.pic}" width="200px"/>
       </td>
      </tr>
      <tr>
        <td>商品描述：</td>
        <td>
          <input class="inpMain" id="miaoshu" name="miaoshu" size="50" value="{$list.miaoshu}" type="text">
       </td>
      </tr>
      <tr>
        <td>详情内容：</td>
        <td>
          <textarea id="content" name="content" cols="30" style="width:800px;height:300px;" rows="10">{$list.content}</textarea>
       </td>
            </tr>
      <notempty name="list.id">
      <input type="hidden" value="{$list.id}" name="id" />
      <input type="hidden" value="{$list.pic}" name="c_pic" />
      </notempty>
      <tr>
       <td></td>
       <td>
        <input type="hidden" name="token" value="b9439ae8" />
   <!--      <input type="hidden" name="cat_id" value="" /> -->
        <input name="submit" class="btn" type="submit" value="提交" />
        <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button"></td>
       </td>
      </tr>
     </table>
    </form>
       </div>
 </div>
 <div class="clear"></div>
<include file="application/admin/view/public/foot.html"/><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
</body>
</html>